import request from '@/utils/request';

// 获取商户订单列表
export const getShopOrderList = (data) => {
  return request({
    url: '/console/order/getConsoleOrderList',
    method: 'POST',
    data,
  })
}
// 获取商户订单详情
export const getShopOrderDetail = (data) => {
  return request({
    url: '/console/order/getOrderDetail',
    method: 'POST',
    data,
  })
}
// 向平台发货
export const sendToPlatformGood = (data) => {
  return request({
    url: '/console/order/sendToPlatformGood',
    method: 'POST',
    data,
  })
}
// 获取物流信息
export const getlogisticsInfo = (data) => {
  return request({
    url: '/console/order/getlogisticsInfo',
    method: 'POST',
    data,
  })
}
// 确认收货
export const confirmAccept = (data) => {
  return request({
    url: '/console/order/confirmAccept',
    method: 'POST',
    data,
  })
}
// 商家取消订单
export const cancelOrderByConsole = (data) => {
  return request({
    url: '/console/order/cancelOrderByConsole',
    method: 'POST',
    data,
  })
}
// 查询商品鉴定结果
export const getGoodAuthResult = (data) => {
  return request({
    url: '/console/order/getGoodAuthResult',
    method: 'POST',
    data,
  })
}
// 录入鉴定结果
export const inputAppraisalResult = (data) => {
  return request({
    url: '/console/order/inputAppraisalResult',
    method: 'POST',
    data,
  })
}
// 获取商户售后订单
export const getShopOrderAfterList = (data) => {
  return request({
    url: '/console/order/getOrderAfterList',
    method: 'POST',
    data,
  })
}
// 获取商户售后订单详情
export const getShopOrderAfterDetail = (data) => {
  return request({
    url: '/console/order/getShopOrderAfterDetail',
    method: 'POST',
    data,
  })
}
// 审核售后订单
export const reviewShopOrderAfter = (data) => {
  return request({
    url: '/console/order/reviewShopOrderAfter',
    method: 'POST',
    data,
  })
}
// 商品类目
export const goodsType = (data) => {
  return request({
    url: '/console/shopGoods/detail',
    method: 'POST',
    data,
  })
}
// 商品成色
export const goodsFineness = (data) => {
  return request({
    url: '/console/shopGoods/fineness',
    method: 'POST',
    data,
  })
}
// 快递列表
export const identiylogistics = (data) => {
  return request({
    url: '/console/order/identiylogistics',
    method: 'POST',
    data,
  })
}